<?php
/**
 *	KLF Framework
 *
 *	Written by Kristian Oye <kristianoye@gmail.com> on Nov 20, 2011
 *	Copyright (C) 2010-2011
 */
namespace KLF\System\Errors
{
	use KLF\KCore;
	
	/**
	 *  Class KRouteException
	 *
	 *  This error gets thrown when one or more parameter for constructing a 
	 *  route is invalid, incorrect, or missing.
	 *
	 *  @package KLF\System\Errors
	 *  @access public
	 *  @author Kristian Oye <kristianoye@gmail.com>
	 *  @since 0.1
	 *
	 *  @method KRouteException NewInstance
	 */
	class KRouteException extends KException
	{
		public function __construct($routeName, $msg)
		{
			parent::__construct(
				KCore::FS("Error parsing route '{name}': {msg}", 
				array('name' => $routeName, 'msg' => $msg)));
		}
	}
}